package com.itholmes.singleton;

public class SingleTest {
	public static void main(String[] args) {
		
		SingleObject instance = SingleObject.getInstance();
		SingleObject instance2 = SingleObject.getInstance();	
		System.out.println(instance == instance2);
		
		SingleObject02 instance3 = SingleObject02.getInstance();
		SingleObject02 instance4 = SingleObject02.getInstance();
		System.out.println(instance3 == instance4);
		
	}
}
